# import random
# money=10000
# for id in range(1,21):
#     jiXiao=random.randint(1,10)
#     if jiXiao>5:
#         money-=1000
#         print(f"员工编号{id},发了1000元,还剩{money}")
#     # else:
#     #     print(f"员工编号{id},绩效分{jiXiao},不合格,不发工资")
#     if money==0:
#             print("钱发完了")
#             break


#  了解     while  ...else  for ...else

for a in range(1,8):
   if a==7:
       print("a的值是3")
       break
else:  #for ..else 经常跟break联动
   print("a的值不是3")
# else:  # 整个for循环执行完了之后才会执行
#     print("不存在")



